# 整数
from operator import truediv

num = 10

# 浮点数
num1 = 0.1
num2 = 0.2
print(num)
print(num1)
print(num1+num2)  # 误差

# 四舍五入
num3 = round(num1+num2, 2)
print(num3)

import math
# 向上取整
num4 = math.ceil(17.356)
print("向上取整的结果", num4)
# 向下取整
num5 = math.floor(17.356)
print("向下取整的结果", num5)

# 布尔型
yes = True
no = False
print(yes, no)

# 字符串
str1 = "hello python"
str2 = "hello world"

str3 = str1 + str2

str4 = str1 * 3

print(str3)
print(str4)
